package com.deyuanyun.pic.pipe.service.impl;

import com.deyuanyun.pic.common.dto.BasicDataByFind;
import com.deyuanyun.pic.common.tool.JXL;
import com.deyuanyun.pic.pipe.domain.Identification;
import com.deyuanyun.pic.pipe.domain.IdentificationExample;
import com.deyuanyun.pic.pipe.mapper.IdentificationMapper;
import com.deyuanyun.pic.pipe.mapper.dao.IdentificationDao;
import com.deyuanyun.pic.pipe.service.IdentificationService;
import com.deyuanyun.pic.settings.support.biz.CodeUtil;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

/**
* @ClassName: IdentificationServiceImpl 
* @Description: 地面标识Service实现
* @author h.x.rong
* @date  2015年11月18日
*
 */
@Service
public class IdentificationServiceImpl implements IdentificationService{

	
	@Resource
	IdentificationDao identificationDao;
	@Resource
	IdentificationMapper identificationMapper;

	@Override
	public List<Identification> queryIdentificationAll() {
		return identificationDao.queryIdentificationAll();
	}

	@Override
	public List<Identification> queryIdentification(String signNumber) {
		IdentificationExample identificationExample = new IdentificationExample();
		identificationExample.createCriteria().andDeletedEqualTo(Short.valueOf("0"))
				.andIsNewestEqualTo(Short.valueOf("0")).andDataStatedEqualTo("20").andSignNumberEqualTo(signNumber);
		return identificationMapper.selectByExample(identificationExample);
	}

	@Override
	public List<Identification> queryIdentificationFlag() {
		return identificationDao.queryIdentificationFlag();
	}
}
